package com.example.demo.generator.codegen.model;

import java.util.Collections;
import java.util.Map;

/**
 * Wrapper for SQL payload and parsing options passed into the adapter.
 */
public class ParamInfo {

    /**
     * 原始 SQL 文本。
     */
    private String tableSql;
    /**
     * 解析配置项。
     */
    private Map<String, Object> options = Collections.emptyMap();

    public String getTableSql() {
        return tableSql;
    }

    public void setTableSql(String tableSql) {
        this.tableSql = tableSql;
    }

    public Map<String, Object> getOptions() {
        return options;
    }

    public void setOptions(Map<String, Object> options) {
        this.options = options != null ? options : Collections.emptyMap();
    }

    public static final class NameCaseType {
        private NameCaseType() {
        }

        public static final String CAMEL_CASE = "CamelCase";
        public static final String UNDER_SCORE_CASE = "UnderScoreCase";
        public static final String UPPER_UNDER_SCORE_CASE = "UpperUnderScoreCase";
    }
}
